function log(store) {
    const next = store.dispatch
    function logAndDispatch(action) {
        console.log("当前派发的action",action)
        console.log("派发后的结果",store.getState())
        next(action)
    }

    store.dispatch = logAndDispatch
}
export default log